package com.good.controller;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.good.service.EmailService;

@Controller
public class EmailController {
	@Resource(name="emailServiceImpl")
	private EmailService emailService;
	@RequestMapping(value="sendEmail",method = RequestMethod.GET)
	public String sendEmail(){
		emailService.sendMail("jiejie","531526205@qq.com", "good");
		return "success";
	}
}
